package com.spy.system.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel("物料信息分页查询请求模型")
public class MatMaterialPageReqDto {

    @ApiModelProperty(value = "物料名称", required = false)
    private String materialName;



    @ApiModelProperty(value = "状态（0-禁用，1-启用）", required = false, example = "1")
    private Integer status;

    @ApiModelProperty(value = "页码", required = true, example = "1")
    @NotNull(message = "页码不能为空")
    private Integer pageNum=1;

    @ApiModelProperty(value = "页面大小", required = true, example = "10")
    @NotNull(message = "页面大小不能为空")
    private Integer pageSize=10;
}